<!-- 给学生添加样式，如果平均分《60分 背景色为灰色： 我们使用指令来实现 -->
<div class="divstudent" [appHighlightstudent] [appDisabledstudent]="((student.shuxue+student.yuwen+student.yinyu)/3)<60">

    <!-- <div *ngIf="selectedSexyValue==='2' || student.sexy === selectedSexyValue"> -->
    <img [src]="student.img" class="rounded mx-auto" (click)="studentImgClick(student)">
    <p [appCustomstyle]="{backgroundColor:'green',fontSize:'20px',color:'black'}">
        姓名:{{student.name}}&nbsp;&nbsp;&nbsp;
        年龄:{{student.age}}</p>
    <p >数学:{{student.shuxue}}&nbsp;&nbsp;&nbsp;
        语文:{{student.yuwen}}&nbsp;&nbsp;&nbsp;
        英语:{{student.yinyu}}</p>
    <p [ngStyle]="{color:((student.shuxue+student.yuwen+student.yinyu)/3)<60?'red':'gray'}">
        平均成绩:{{getpingjun(student)}}&nbsp;&nbsp;&nbsp;
        备注:{{student.beizhu}}&nbsp;&nbsp;&nbsp;</p>

    备注：<input type="text" [(ngModel)]="student.beizhu" />


    <input type="text" (input)="onchage($event,this)" [hidden]="zongchegnji==0?true:false"
        [value]="zongchegnji.toFixed(2)" />
    <button (click)="setTotal(student)"
     [buttonDynamicClass]="'buttonclass'"
     [buttonDynamicClassState]="true" 
     [hidden]="zongchegnji==0?false:true">显示总成绩</button>
    <hr />
    <!-- </div> -->
</div>